{extend name="pc/admin/layout"/}
{block name="main"}
   <div class="g-1400 g-container" id="pjax-container">
        
<div class="bg-bai b rx3" id="vue-page">
    <div class="t-v t-t">
        <div class="c-sidebar c-sidebar-h pb5 br">
            <div class="c-sidebar-title t-v hui bb">添加分站</div>
            <ul class="c-nav click-nav">
				<li class="active"><a class="t-v" href="{:url('pc/admin',['act'=>'data','s'=>'fz_list'])}" data-pjax="">
                    <font class="v-1">返回列表</font>
                </a></li>
            </ul>
        </div>
<div class="c-content bl">
    <div class="g-title t-v pl4 bb">
        <div class="col-8 h t-v bold">分站信息</div>
        <div class="col-4 t-v t-r"></div>
    </div>
	<div class="p5 o-h">
	<form id="form" style="padding-left: 25px;padding-right: 25px;">
		<div class="pt1 pb3 in-text">
			<dt class="bold bb pr2 lan">所属UID</dt>
			<dd><input type="number" name="user_id"  placeholder="开通者的用户UID" class="form w h8 bb"></dd>
		</div>
		<div class="pt1 pb3 in-text">
			<dt class="bold bb pr2 lan">绑定域名</dt>
			<dd><input type="text" name="domain" placeholder="站点绑定的域名" class="form w h8 bb"></dd>
		</div>
		<div class="pt1 pb3 in-text">
			<dt class="bold bb pr2 lan">网站名称</dt>
			<dd><input type="text" name="webname" placeholder="站点网站名称" class="form w h8 bb"></dd>
		</div>
		<div class="pt1 pb3 in-text">
			<dt class="bold bb pr2 lan">站长QQ</dt>
			<dd><input type="text" name="user_qq" placeholder="站长联系QQ" class="form w h8 bb"></dd>
		</div>
		<div class="pt1 pb3 in-text">
			<dt class="bold bb pr2 lan">联系邮箱</dt>
			<dd><input type="text" name="mail" placeholder="站长联系邮箱" class="form w h8 bb"></dd>
		</div>
		<div class="pt1 pb3 in-text">
			<dt class="bold bb pr2 lan">到期时间</dt>
			<dd><input type="date" name="end_time" placeholder="填写站点到期时间" class="form w h8 bb"></dd>
		</div>
		</form>
		</div>
		</div>
</div>
<div class="c-pagination o-h t-v">
        <div class="c-sidebar"></div>
        <div class="c-content h11 o-h g-btn t-v bt bl">
            <div class="col-12 h t-v f3 hui pl5 pr5 t-c">
			<button class="btn btn-qing btn-md w22 rx1" @click="add()">添 加 分 站</button></div>
        </div>
    </div>
</div>

    </div>
   {/block}
   {block name='foot'}
		<script>
        new Vue({
            el: '#vue-page',
            methods: {
                add: function () {
                    app.ajax("{:url('AdminAjax/siteList',['action'=>'add'])}", $("#form").serialize(), function (data) {
                        if (data.code === 0) {
                            x.msg(data.message, 2)
                        } else {
                            x.msg(data.message, 2)
                        }
                    })
                }
            }
        })
    </script>
    {/block}